//创建对象的方法
var obj = {} //创建对象字面量
var obj2 = new Object()//构造函数和普通函数没有区别

var obj = 'hello' //new String()

function Car(){
    // var this = {         执行new时内部的步骤
    //     name : 'su7'
    //     height : 1400
    //     lang : 5000
    //     weight : 1000
    //     color : color
    //     return this
    // }

    this.name = 'su7'
    this.height = 1400
    this.lang = 5000
    this.weight = 1000
    this.color = color
}

let car1 = new Car('red')
let car2 = new Car('green')


